package test;

import java.util.Scanner;

public class Chen2 {
    public static void main(String[] args) {
        int[] num = {11, 5, 8, 12, 100, 99, 100};

        boolean flag = true;
        for (int i = 0; i < num.length; i++) {
            int sum = num[i];
            int count = 0;
            for (int j = 0; j < num.length; j++) {
                int sum1 = num[j];

                if (sum == sum1) {
                    count++;
                }
            }

            if (count >= 2) {
                flag = false;
            }
        }
        if (flag==false) {
            System.out.println("有重复值存在！！！");
        } else {
            System.out.println("没有重复值存在！！！");
        }

    }
}
